from django.db import models


class UserAccount(models.Model):
    """用户"""
    username = models.CharField(verbose_name='用户名', max_length=32)
    password = models.CharField(verbose_name='密码', max_length=64)


from django.db import models

class AncientPoem(models.Model):
    """古诗及出处"""
    poem_text = models.TextField(verbose_name='古诗内容')
    source = models.CharField(verbose_name='出处', max_length=100)

    def __str__(self):
        return self.source
